import { AccountBookOutlined, HomeOutlined, UserOutlined } from '@ant-design/icons'
import Home from '@/views/Home'
import About from '@/views/About'
import Test from '@/views/Test'
import { HeartIcon } from '@/components/Icons'
import Detail from '@/views/Test/Detail'
import Person from '@/views/Person'

export const routers = [
  {
    path: '/',
    element: Home,
    name: '首页',
    icon: HomeOutlined,
    isMenu: true
  },
  {
    path: '/about',
    element: About,
    name: '关于',
    icon: AccountBookOutlined,
    isMenu: true
  },
  {
    path: '/test',
    element: Test,
    name: '测试管理',
    icon: HeartIcon,
    isMenu: true,
    children: [
      {
        path: '/test/test',
        element: Test,
        name: '测试',
        icon: UserOutlined,
        isMenu: true
      },
      {
        path: '/test/test/:id',
        element: Detail,
        name: '测试详情',
        icon: UserOutlined,
        isMenu: false
      }
    ]
  },
  {
    path: '/person',
    element: Person,
    name: '个人中心',
    icon: UserOutlined,
    isMenu: true
  }
]

export const breadList = [
  { key: '/', name: [{ title: '首页' }] },
  { key: '/about', name: [{ title: '关于' }] },
  { key: '/about/product', name: [{ title: '关于' }, { title: '产品' }] },
  { key: '/about/agent', name: [{ title: '关于' }, { title: '代理商' }] },
  { key: '/test', name: [{ title: '测试管理' }] },
  { key: '/test/test', name: [{ title: '测试管理' }, { title: '测试' }] },
  { key: '/test/test/:id', name: [{ title: '测试管理' }, { title: '测试' }, { title: '详情' }] },
  { key: '/person', name: [{ title: '个人中心' }] }
]
